Mechanical foot